constraint-editor: Fix saving of constraints
authorMatthias Clasen <mclasen@redhat.com>
Wed, 18 Nov 2020 04:14:29 +0000 (23:14 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 18 Nov 2020 04:14:29 +0000 (23:14 -0500)
commit831ebe3ef26ee9069edc8f6162353273eb4dbc43
tree1e7dd74424c913344b1c74e7b869cc8c20fe6410
parent76b8676955ffa1b346c3c367acbb8b9cdc0f7f63
constraint-editor: Fix saving of constraints

g_file_replace_contents take a gsize, so passing -1
for string length does not work here.
demos/constraint-editor/constraint-editor-window.c